﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace SQLDocumentationX
{
    public class Utility
    {
        public static string AssemblyTitle()
        {

            AssemblyTitleAttribute title = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute;
            return title.Title;

        }

        public static string AssemblyCopyright()
        {
            AssemblyCopyrightAttribute copyright = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute;
            return copyright.Copyright;
        }


        public static string Version()
        {

            return Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }
    }
}
